
<form id="form_edit">
<input type="hidden" name="transaction" value="{[$result.transaction]}" />
<input type="hidden" name="customer" value="{[$result.customer]}" />
<table>
	<tr>
		<td width="20%" align="right">收入：</td>
		<td width="30%"><input type="text" name="in_" value="{[$result.in]}" size="12"></td>
		<td width="20%" align="right">业务员：</td>
		<td width="30%"><input type="text" name="emp" id="emp" value="{[$result.emp]}:{[$result.emp_t]}" size="12" title="{[$t.emp_|emp:'业务员']}"> <input
			type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}"> 自己</td>
	</tr>
	<tr>
		<td align="right">类型：</td>
		<td><select name='type' id='type'>
			{[html_options options=$type_option selected=$result.type]}
		</select></td>
		<td align="right">工程师：</td>
		<td><input type="text" name="engineer" id="engineer"
				value="{[$result.engineer]}:{[$result.engineer_t]}" size="12"
				title="{[$t.engineer]}"></td>
	</tr>
	<tr>
		<td align="right">事由：</td>
		<td colspan="3"><textarea rows="2" name="name" cols="55">{[$result.name]}</textarea></td>
	</tr>
	<tr>
		<td align="right">应收：</td>
		<td colspan="3"><input type="text" name="total" id="total" value="{[$result.total]}" size="12"> <select name='currency'
			id='currency'>
			{[html_options options=$currency_option selected=$result.currency]}
		</select> <label id="label_total"></label></td>
	</tr>
	<tr>
		<td align="right">实收：</td>
		<td colspan="3"><input type="text" name="amount" id="amount" value="{[$result.amount]}" size="12"> <select name='percent_t' id='percent_t'>
			{[html_options options=$percent_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">汇率：</td>
		<td><input type="text" name="rate" id="rate" value="{[$result.rate]}" size="12"></td>
		<td align="right">开票日期：</td>
		<td><input type="text" name="date1" id="date1" value="{[$result.date1]}" size="12"></td>	
	</tr>
	<tr>
		<td align="right">人民币：</td>
		<td><input type="text" name="rmb" id="rmb" value="{[$result.rmb]}" size="12"></td>	
		<td align="right">到帐日期：</td>
		<td><input type="text" name="date" id="date" value="{[$result.date]}" size="12"></td>
	</tr>	
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<script type='text/javascript'>
var a = $("#total").val();
var b = $("#currency").find("option:selected").text();

Currency.upper(a, b, "#label_total");

var exchange = {[$result.exchange]};
</script>

<script type="text/javascript" src="js/finance/in/item/add.js?r={[$smarty.now]}"></script>
